package com.neusoft.my12306.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * <p>
 * 
 * </p>
 *
 * @author 段静迪
 * @since 2023-07-07
 */
@Data
public class Trainline implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "tlid", type = IdType.AUTO)
    private Integer tlid;

    private String trainno;

    private String fromnm;

    private String tonm;

    private String fromtime;

    private String totime;

    private Integer days;
//    在Mybatis-plus中排除
    @TableField(exist = false )
    private List<Schedule>  schedules;

    public List<Schedule> getSchedules() {
        return schedules;
    }

    public void setSchedules(List<Schedule> schedules) {
        this.schedules = schedules;
    }

    public Integer getTlid() {
        return tlid;
    }

    public void setTlid(Integer tlid) {
        this.tlid = tlid;
    }
    public String getTrainno() {
        return trainno;
    }

    public void setTrainno(String trainno) {
        this.trainno = trainno;
    }
    public String getFromnm() {
        return fromnm;
    }

    public void setFromnm(String fromnm) {
        this.fromnm = fromnm;
    }
    public String getTonm() {
        return tonm;
    }

    public void setTonm(String tonm) {
        this.tonm = tonm;
    }
    public String getFromtime() {
        return fromtime;
    }

    public void setFromtime(String fromtime) {
        this.fromtime = fromtime;
    }
    public String getTotime() {
        return totime;
    }

    public void setTotime(String totime) {
        this.totime = totime;
    }
    public Integer getDays() {
        return days;
    }

    public void setDays(Integer days) {
        this.days = days;
    }

    @Override
    public String toString() {
        return "Trainline{" +
            "tlid=" + tlid +
            ", trainno=" + trainno +
            ", fromnm=" + fromnm +
            ", tonm=" + tonm +
            ", fromtime=" + fromtime +
            ", totime=" + totime +
            ", days=" + days +
        "}";
    }
}
